package dongshi.daddy.main;

import dongshi.daddy.service.ProviderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerCallTimeoutMethodMain {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("consumer-with-call-timeout-method.xml");
        context.start();
        ProviderService providerService = (ProviderService) context.getBean("providerService");
        String str = providerService.SayHello("hello");
        System.out.println(str);
        System.in.read();
    }
}
